import React from "react";
import Form from "../Form";

function formHoc(Component) {

    class WrappedComponent extends React.Component{
        render() {
            return(
                <>
                <h2>用户表单</h2>
                <Component/>
                </>
            )
        }
    }
    return WrappedComponent;
}

const NewForm = formHoc(Form);
export default NewForm;